<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
include('application/libraries/eac_curl.class.php');
class Home extends MX_Controller {

	function __construct(){
		parent::__construct();
		$this->template->write('title','');
		$this->template->write('meta_keywords','');
		$this->template->write('meta_description','');
		$this->template->write('meta_image','');
		$this->template->write('meta_video','');
	}
	
	/*-------------------------------------- FrontEnd --------------------------------------*/
	function index(){
        if(!$this->uri->segment(1)){
           echo '<meta http-equiv="refresh" content="0;url='.PATH_URL.'trang-chu">';
        }
        $data['result']='';
        $this->template->write_view('content','FRONTEND/index',$data);
        $this->template->write('meta_keywords','Mộng võ lâm, game hay, game cực hay, game 2013');
        $this->template->write('meta_description','Mộng võ lâm game hay nhất trong năm');
        $this->template->write('title','Trang chủ | '.SITE_NAME);
        $this->template->render();
	}
	function topSlider(){			
        $data['result']='';        
        $this->load->view('FRONTEND/top',$data);
	}
	function footer(){			
        $data['result']='';
        $this->load->view('FRONTEND/footer',$data);
	}
	function menu(){			
        $data['result']='';
        $this->load->view('FRONTEND/menu',$data);
	}
}